package org.bigdata.framework.core.model;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-07-03
 */
@TableName("pay_order_detail")
public class PayOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 所属知识库产品
	 */
	@TableField(value="repository_product_id")
	private Integer repositoryProductId;

	/**
	 * 订购资源项目（只对机构用户有效project表的id）
	 */
	@TableField(value="project_id")
	private Integer projectId;

	/**
	 * 订购资源项目详情id（只对机构用户有效balance_account/count_account/time_account表的id）
	 */
	@TableField(value="product_detail_id")
	private Integer productDetailId;

	/**
	 * 资源数量（默认赋值一般都是1）
	 */
	@TableField(value="resources_count")
	private Integer resourcesCount;

	/**
	 * 资源ID（知识库id）
	 */
	@TableField(value="resources_id")
	private String resourcesId;

	/**
	 * 资源类型（存储知识库class_en）
	 */
	@TableField(value="resources_type")
	private String resourcesType;

	/**
	 * 资源标题
	 */
	@TableField(value="resources_title")
	private String resourcesTitle;

	/**
	 * 资源单价
	 */
	@TableField(value="resources_price")
	private BigDecimal resourcesPrice;

	/**
	 * 资源优惠/折扣金额
	 */
	@TableField(value="resources_preferential")
	private BigDecimal resourcesPreferential;

	/**
	 * 关联订单表
	 */
	@TableField(value="pay_order_id")
	private Integer payOrderId;

	/**
	 * 编号（订单商品编号）
	 */
	@TableField(value="order_detal_number")
	private String orderDetalNumber;

	/**
	 * 
	 */
	@TableField(value="resources_money")
	private BigDecimal resourcesMoney;

	/**
	 * 用户名
	 */
	@TableField(value="member_username")
	private String memberUsername;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRepositoryProductId() {
		return repositoryProductId;
	}

	public void setRepositoryProductId(Integer repositoryProductId) {
		this.repositoryProductId = repositoryProductId;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getProductDetailId() {
		return productDetailId;
	}

	public void setProductDetailId(Integer productDetailId) {
		this.productDetailId = productDetailId;
	}

	public Integer getResourcesCount() {
		return resourcesCount;
	}

	public void setResourcesCount(Integer resourcesCount) {
		this.resourcesCount = resourcesCount;
	}

	public String getResourcesId() {
		return resourcesId;
	}

	public void setResourcesId(String resourcesId) {
		this.resourcesId = resourcesId;
	}

	public String getResourcesType() {
		return resourcesType;
	}

	public void setResourcesType(String resourcesType) {
		this.resourcesType = resourcesType;
	}

	public String getResourcesTitle() {
		return resourcesTitle;
	}

	public void setResourcesTitle(String resourcesTitle) {
		this.resourcesTitle = resourcesTitle;
	}

	public BigDecimal getResourcesPrice() {
		return resourcesPrice;
	}

	public void setResourcesPrice(BigDecimal resourcesPrice) {
		this.resourcesPrice = resourcesPrice;
	}

	public BigDecimal getResourcesPreferential() {
		return resourcesPreferential;
	}

	public void setResourcesPreferential(BigDecimal resourcesPreferential) {
		this.resourcesPreferential = resourcesPreferential;
	}

	public Integer getPayOrderId() {
		return payOrderId;
	}

	public void setPayOrderId(Integer payOrderId) {
		this.payOrderId = payOrderId;
	}

	public String getOrderDetalNumber() {
		return orderDetalNumber;
	}

	public void setOrderDetalNumber(String orderDetalNumber) {
		this.orderDetalNumber = orderDetalNumber;
	}

	public BigDecimal getResourcesMoney() {
		return resourcesMoney;
	}

	public void setResourcesMoney(BigDecimal resourcesMoney) {
		this.resourcesMoney = resourcesMoney;
	}

	public String getMemberUsername() {
		return memberUsername;
	}

	public void setMemberUsername(String memberUsername) {
		this.memberUsername = memberUsername;
	}

}
